<?

class Model_Mail extends Models_Base {
	
	function send($to, $subject, $text) {

		$headers  = 'MIME-Version: 1.0' . "\r\n";
		$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
		$headers .= 'From: no-reply@eslidesign.ru' . "\r\n";

		$text = "<html><head><title>$subject</title></head><body><p>$text</p></body></html>";


		mail($to, $subject, $text, $headers);	
	}
	 
}
